# exWx/setup.py
#
## python setup.py py2exe 
#
from distutils.core import setup
import matplotlib
import py2exe
#
####################################
PyAppName = "easymgf.pyw"
AppName = "EasierMgf"
AppVers = "0.1"
Icon = 'images//easiermgf.ico'
####################################
#
setup(
    windows = [
              {'script': PyAppName,
              'icon_resources':[(0, Icon)],
               'dest_base' : "%s %s" %(AppName, AppVers),    
               'version' : AppVers,
               'company_name' : "JoaquinAbian",
               'copyright' : "No Copyrights",
               'name' : AppName 
              }
              ],
            
    options = {
              'py2exe': {
                        'packages' :    ['matplotlib', 'pytz'],
##                        'includes':     [],
                        'excludes':     ['EasyDialogs', 'PyQt4',
                                         'bsddb', 'curses', 'Pyrex',
                                         'email', 'testing', 'fft',
                                         '_gtkagg', '_tkagg', 'pywin.debugger',
                                         'pywin.debugger.dbgcon', 'pywin.dialogs',
                                         'Tkconstants','Tkinter', 'tcl'
                                        ],
                        'ignores':       ['wxmsw26uh_vc.dll'],
                        'dll_excludes': ['libgdk_pixbuf-2.0-0.dll',
                                         'libgdk-win32-2.0-0.dll',
                                         'libgobject-2.0-0.dll',
                                         'tk84.dll','tcl84.dll'
                                        ],
                        'compressed': 1,
                        'optimize':2,
                        'bundle_files': 1
                        }
              },
    zipfile = None,
                       
    data_files = [("", ["INSTALL.txt",   #Archivo de final de instalacion
                        "README.txt",   #archivo README y help de la aplicacion
                        "LICENCE.TXT",   #Licence File (GPL v3)
                        "msvcp90.dll",
                        "C:\\Python26/Lib/site-packages/wx-2.8-msw-unicode/wx/gdiplus.dll",
                        "C:\\Python26/lib/site-packages/numpy/core\umath.pyd"
                        ]
                  ),
                  ("test", ["test/test.db"]),
                 ] + matplotlib.get_py2exe_datafiles() 
    )
